package com.cq.hd.member.service;

import com.cq.hd.member.api.dto.BusinessSubscribeDto;
import com.cq.hd.member.api.dto.BusinessSubscribeUpdateDto;
import com.cq.hd.member.api.vo.BusinessSubscribeVo;
import com.cq.hd.member.po.TbBusinessSubscribePo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订阅商家表 服务类
 * </p>
 *
 * @author mYunYu
 * @since 2023-11-21
 */
public interface TbBusinessSubscribeService extends IService<TbBusinessSubscribePo> {

    List<Long> listByUserId(Long userId);

    BigDecimal updateState(BusinessSubscribeUpdateDto businessSubscribeUpdateDto);

    List<BusinessSubscribeVo> listByBusinessIds(List<Long> businessIds);

    List<BusinessSubscribeVo> listByDto(BusinessSubscribeDto businessSubscribeDto);

    Map<Long, Integer> getBusinessSubscribeCount(List<Long> businessIds);
}
